#include "reg52.h"
#include "hc04.h"
#include "delay.h"
#include "sg90.h"
 
void main()
{
     
     Time0Init();
    Time1Init();
    //舵机的初始位置
 
    sgMiddle();
    Delay300ms();
    Delay300ms();
     
    while(1){
     
        sgLeft();
        Delay300ms();
        sgMiddle();
        Delay300ms();
        sgRight();
        Delay300ms();
        sgMiddle();
        Delay300ms();
    }
}




